class MyExamOrderEntity {
  MyExamOrderData data;
  int code;
  String msg;

  MyExamOrderEntity({this.data, this.code, this.msg});

  MyExamOrderEntity.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null
        ? new MyExamOrderData.fromJson(json['data'])
        : null;
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.toJson();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class MyExamOrderData {
  List<MyExamOrderDataData> datas;

  MyExamOrderData();

  MyExamOrderData.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      datas = new List<MyExamOrderDataData>();
      (json['list'] as List).forEach((v) {
        datas.add(new MyExamOrderDataData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.datas != null) {
      data['list'] = this.datas.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class MyExamOrderDataData {
// id
// 收货地址ID
// user_id
// 用户ID
// province
// 省份
// city
// 城市
// county
// 城市
// detail_address
// 详细地址
// company
// 单位名称
// consignee
// 收件人
// contact_number
// 联系电话
// postcode
// 邮编
// is_default
// 是否为默认地址 Y是 N否
  String order_id;
  String name;
  String head_img;
  String create_time;
  String allprice;
  String num;
  String group_name;
  String parameter;
  String point;
  bool isSelect=false;
  MyExamOrderDataData(
      {this.order_id,
      this.name,
      this.create_time,
      this.point,
      this.allprice,
      this.head_img,
      this.num,
      this.group_name
     });

  MyExamOrderDataData.fromJson(Map<String, dynamic> json) {
    order_id = json['order_id'].toString();
    name = json['name'].toString();
    parameter=json['parameter'].toString();
    create_time = json['create_time'].toString();
    allprice = json['allprice'].toString();
    head_img = json['head_img'].toString();
    num = json['num'].toString();
    point=json['point'].toString();
    group_name=json['group_name'].toString();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['order_id'] = this.order_id;
    data['name'] = this.name;
    data['num'] = this.num;
    data['head_img'] = this.head_img;
    data['name'] = this.name;
    data['parameter']=this.parameter;
    data['allprice'] = this.allprice;
    data['group_name']=this.group_name;
    return data;
  }
}